<template>
	<view >
		<view v-for="(item,index) in list" :key="index">
			<view @click="itemClick(item)" class="item flex-row-center">
				<image class="image" src="/static/common/image.png" mode="aspectFill"></image>
				<view class="flex1">
					<view class="label flex1 flex-row-flex-start">
						168牛杂火锅（3-4人餐）
					</view>
					<view class=" flex-row-space-between">
						<view class="name overflow1">
							食久老巷子（科学大道）食久老巷子（科学大道）
						</view>
						<view class="flex-row-flex-end" style="width: 230rpx;">
							<image class="address" src="/static/index/address.png" mode=""></image>
							<view class="addressTitle">
								2.32km
							</view>
						</view>
					</view>
					<view class="name1 overflow1">
						备注内容备注
					</view>
					<view class="flex-row-space-between">
						<view class="flex-row-flex-start" style="margin-top: 20rpx;">
							<view class="price">
								<text style="font-size: 18rpx;">￥</text>
								299.00
							</view>
							<view class="price1">
								￥399.00
							</view>
						</view>
						<view @click.stop="payButtonClick(item)" class="payButton flex-column-center" :style="{ background: baseColor }">
							下单
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		mapActions,
		mapState
	} from "vuex";
	export default {
		name: "business",
		components: {
			
		},

		data() {
			return {
				

			};
		},
		computed: {
			...mapState([
				'baseColor'
			]),
		},
		props: {
			list: {
				type: Array,
				default: () => {
					return []
				}
			},
			

		},
		created() {

		},
		methods: {
			itemClick(item){
				uni.navigateTo({
					url:'/pages/index/businessDetail'
				})
			},
			payButtonClick(item){
				uni.navigateTo({
					url:'/pages/index/packageDetail'
				})
			},
			gotoReport(item) {
				uni.navigateTo({
					url: `/pages/trends/trendsReport?goodsid=${item.id}`
				})
			}

		}
	}
</script>

<style lang="scss">
	.item{
		margin: 30rpx;
	}
	.image{
		margin-right: 20rpx;
		width: 240rpx;
		height: 224rpx;
		border-radius: 20rpx;
	}
	.label{
		margin-bottom: 20rpx;
		padding-left:8rpx;
		// padding-right:40rpx;
		height: 56rpx;
		background: linear-gradient(270deg, rgba(255,242,219,0.3) 0%, #FFF2DB 100%);
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		opacity: 1;
		font-size: 30rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 550;
		color: #FFB22E;
	}
	.address{
		margin-right: 6rpx;
		width: 24rpx;
		height: 24rpx;
	}
	.addressTitle{
		
		font-size: 26rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		color: #999999;
	}
	.name{
		font-size: 26rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		color: #333333;
	}
	.name1{
		margin-top: 22rpx;
		font-size: 26rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		color: #999999;
	}
	.price{
		font-size: 30rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 600;
		color: #FF3125;
	}
	.price1{
		margin-left: 18rpx;
		font-size: 26rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		color: #999999;
		text-decoration:line-through;
	}
	.payButton{
		width: 132rpx;
		height: 54rpx;
		border-radius: 27rpx;
		font-size: 26rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		color: #FFFFFF;
	}
</style>